
export const setUser = (u) => {
    let user = localStorage.getItem('TEA_USER');
    if (user) {
        localStorage.removeItem('TEA_USER');
    }
    localStorage.setItem('TEA_USER', JSON.stringify(u));
}

export const getUser = () => {
    return JSON.parse(localStorage.getItem('TEA_USER'));
}

export const removeUser = () => {
    localStorage.removeItem('TEA_USER');
}